//
// Created by 高壮壮 on 2023/3/30.
//
#include <stdio.h>
#define  SIZE 10
int main()
{
    /*

    //int arr [ 10 ] = {1,2,3,4,5,6,78,9,10};
    int arr[]={1,2,3,4,5,6,7,8,9,10};
    for (int i = 0; i < sizeof (arr)/ sizeof(arr[0]); ++i) {
        printf("%d\n",arr[i]);
    }
    */




/*

     //int arr[10] = {1,2,3,4,5};//1234500000
     //int arr[10] = {0};//00000000000
     int arr[10] = {1};
    for (int i = 0; i < sizeof (arr)/ sizeof(arr[0]); ++i) {
        printf("%d\n",arr[i]);
    }

    */

       // int i = 10;
       //数组元素必须是常量，常量表达式
      /* int arr[SIZE];
       //数组必须预先知到大小，不能动态改变，必须知到动态数组》开辟空间

   for (int i = 0; i < SIZE; ++i) {
        scanf("%d",&arr[i]);
    }
    for (int i = 0; i < SIZE; ++i) {
        printf("%d\n",arr[i]);
    }
    return 0;
}*/


   int arr[10] = {1,2,3,4,5,6,7,8,9,10};
    for (int i = 0; i < 20; ++i) {
        //数组下标越界 0-9
        printf("%d\n", arr[i]);
    }
        return 0;
    }